package com.design.pattern.behavior.strategy.promotion;

/**
 * 上下文
 */
public class PromotionActivity {
    private IPromotionStrategy promotionStrategy;

    public PromotionActivity(IPromotionStrategy promotionStrategy) {
        this.promotionStrategy = promotionStrategy;
    }


    public void execute(){
        promotionStrategy.doPromotion();
    }
}
